package com.ysd.lis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysd.common.Result;
import com.ysd.lis.entity.WkFile;
import com.ysd.lis.request.WkFolderParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * cold_chain.t_user 服务类
 * </p>
 *
 * @author peng
 * @since 2024-03-04
 */
public interface WkFileService extends IService<WkFile> {
    Result uploadFiles(MultipartFile file, HttpServletRequest request) throws IOException;

    Result findFolderAndFileList(WkFolderParam param);
    Result findFolderAndFileListByCode(WkFolderParam param);

    Result deleteFile(WkFile file);

    void downWkFile(String id, HttpServletResponse response);

    void viewWkFile(String id, HttpServletResponse response);

    Result editFile(WkFile file);

    Result copyFile(WkFile file) throws IOException;
}
